/*
 * Copyright(C) 2019 FUYUN DATA SERVICES CO.,LTD. - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * 该源代码版权归属福韵数据服务有限公司所有
 * 未经授权，任何人不得复制、泄露、转载、使用，否则将视为侵权
 *
 */

import * as React from 'react';
import './Trigger.scss';

interface IProps extends React.HTMLAttributes<HTMLDivElement> {
  collapsed?: boolean;
}

const Trigger: React.SFC<IProps> = ({ style, onClick, collapsed }) => {
  return (
    <div style={style} onClick={onClick} className="trigger-container">
      <div className={collapsed ? 'right' : 'left'} />
    </div>
  );
};

export default Trigger;
